﻿<Window x:Class="Shoozla.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:s="clr-namespace:Shoozla"
        xmlns:sv="clr-namespace:Shoozla.ViewModel"
        Title="Shoozla" Height="689" Width="1017"
        Background="Transparent" WindowStartupLocation="CenterScreen" WindowStyle="ThreeDBorderWindow" VerticalAlignment="Stretch" UseLayoutRounding="False">
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo x:Name="progressBarTaskBar" ProgressState="Normal" ProgressValue="0">
        </TaskbarItemInfo>
    </Window.TaskbarItemInfo>
    <DockPanel x:Name="mainDP">
        <WrapPanel DockPanel.Dock="Top">
            <WrapPanel.Background>
                <ImageBrush ImageSource="/Shoozla;component/Images/sky.jpg" Stretch="UniformToFill" TileMode="None" />
            </WrapPanel.Background>
            <Image HorizontalAlignment="Left" Name="titleIM"  Width="400" Height="100" VerticalAlignment="Top" Source="/Shoozla;component/Images/title.png" DockPanel.Dock="Top"/>
            <WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                <Button x:Name="OpenFolderBT" Command="{Binding Path=CmdOpenList}" Width="80" Style="{DynamicResource CmdButton}" >
                    <Image Source="/Shoozla;component/Images/music.png" ToolTip="Mp3s" />
                </Button>
                <Button x:Name="OpenPreviewBT" Command="{Binding Path=CmdOpenPreview}" Width="80" Style="{DynamicResource CmdButton}" >
                    <Image Source="/Shoozla;component/Images/album.png" ToolTip="Covers" />
                </Button>
            </WrapPanel>
            <Image  Name="lastfmLogoIM" Height="50" Margin="50,0,0,0" HorizontalAlignment="Center" Source="/Shoozla;component/Images/lastfm-logo.png" />
        </WrapPanel>
        <StatusBar DockPanel.Dock="Bottom" Height="30" BorderThickness="0,1,0,0" BorderBrush="Gray">
            
            <ProgressBar x:Name="statusPB" IsIndeterminate="false" Height="21" Width="150"></ProgressBar>
            <Button Command="{Binding Path=CmdStopThreads}" Width="20" ToolTip="stop" Visibility="Collapsed">
                <Image Source="/Shoozla;component/Images/cancel.png"/>
            </Button>
            <TextBlock x:Name="countTB"  Margin="0,0,0,0" DockPanel.Dock="Left" TextAlignment="Center" VerticalAlignment="Center"></TextBlock>
           
            <Separator />
                <TextBlock >File saved:</TextBlock>
                <TextBlock Margin="2,0,0,0" Text="{Binding Logger.FilesSaved}"></TextBlock>
            <Separator />
                <TextBlock > Covers found: </TextBlock>
                <TextBlock Margin="2,0,0,0" Text="{Binding Logger.CoversFound}"></TextBlock>
            <Separator />           
            <TextBlock Margin="0,0,0,0">Mp3:</TextBlock>
            
            <TextBlock Margin="2,0,0,0" Text="{Binding Mp3Read}" />
            <Separator />          

            <Button Width="50" Height="23" Command="{Binding Path=CmdAbout}">About</Button>
            <Separator />
            <Button Width="50" Height="23" Command="{Binding Path=CmdOpenFLog}">Log</Button>
        </StatusBar>
        <Grid DockPanel.Dock="Bottom"></Grid>
        <ContentPresenter x:Name="mainContentSP" Content="{Binding Path=CurrentView}" />
      
    </DockPanel>

</Window>
